﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace DosTexPrj.Core.Models
{
    [DataContract]
    public class Delivery : EntityBaseWithIntIDType
    {
        [DataMember]
        public virtual Order BelongToOrder { get; set; }

        [DataMember]
        public virtual string DeliveryAddress { get; set; }

        [DataMember]
        public virtual DateTime DeliveryDate { get; set; }

        [DataMember]
        public virtual IList<DeliveryDetail> Details { get; set; }

        public Delivery()
        {
            this.Details = new List<DeliveryDetail>();
        }
    }
}